package com.practice.agObjectAndClass007.extend;

import com.practice.agObjectAndClass007.extend.pag.PublicClass;

public class ExtendsPublicClass extends PublicClass {
    public double weight;
    public ExtendsPublicClass() {
        super("name");
        double height = super.height;
        double weight = super.weight;
    }

    public void sayHello() {

    }

    @Override
    public void publicMethod(String name) {
        super.publicMethod(name);
    }

    public static void main(String[] args) {
        ExtendsPublicClass epc = new ExtendsPublicClass();
        epc.protectedMethod(1.73);
        PublicClass pc = new ExtendsPublicClass();

    }
}
